﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="Deepforest.TweetMe.UI.SettingsDialog"
    Title="SettingsDialog"
    Height="365"
    Width="277"    
    AllowsTransparency="True"
    WindowStyle="None"
    Background="{x:Null}"
    WindowStartupLocation="CenterScreen" mc:Ignorable="d"
    ShowInTaskbar="False"
    Topmost="True">

    <Border Margin="16" CornerRadius="8" Background="{DynamicResource WindowBackgroundBrush}">
        <Border.Effect>
            <DropShadowEffect Color="#FF333333" ShadowDepth="15" BlurRadius="30" Opacity="0.5"/>
        </Border.Effect>
        
        <Grid d:LayoutOverrides="Width">
    		<Grid.Background>
    			<ImageBrush ImageSource="/Resources/Bird.png" Opacity="0.2" Stretch="Uniform" Viewport="0.1,-0.3,0.8,1.4" />
    		</Grid.Background>                    
    
    		<DockPanel>

        		<DockPanel DockPanel.Dock="Top" Margin="8">
        			<Image DockPanel.Dock="Right" Width="32" Source="/Resources/Twitter.png" />
        			<TextBlock Grid.Column="1" FontSize="16" Text="Settings" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#FFD7F6FF" />
        		</DockPanel>

        		<WrapPanel Opacity="0.8" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,0,0,8" DockPanel.Dock="Bottom">
        			<Button TabIndex="2" Content="Continue" Margin="4" Width="70" Height="28" IsDefault="True" Click="ButtonContinue_Click" />
        			<Button TabIndex="3" Content="Exit" Margin="4" Width="70" Height="28" IsCancel="True" />
        		</WrapPanel>

        		<TextBlock DockPanel.Dock="Top" FontSize="26.667" Text="Tweet Me!" TextWrapping="Wrap" Foreground="#FFD7F6FF" HorizontalAlignment="Center">

        			<TextBlock.Effect>
        				<DropShadowEffect Color="#FF54C0E9" BlurRadius="13" ShadowDepth="2"/>
        			</TextBlock.Effect>
        		</TextBlock>


        	</DockPanel>			
        
        	<StackPanel HorizontalAlignment="Center" Margin="0,133.5,0,79.5" Orientation="Vertical" d:LayoutOverrides="Height">                    
    
        		<TextBox x:Name="TextBoxUserName" TabIndex="0" Opacity="0.8" Height="28" Style="{DynamicResource UserNameTextBoxStyle}" Text="{Binding UserName}" Width="180" HorizontalAlignment="Center" Margin="0,16" />
        		<PasswordBox x:Name="PasswordBox" TabIndex="1" PasswordChanged="PasswordBox_PasswordChanged" Opacity="0.8" Style="{DynamicResource PasswordTextBoxStyle}" Width="180" Height="28" Margin="0,16" d:LayoutOverrides="Height" />
        	</StackPanel>			
        
    	</Grid>			
        
    </Border>

</Window>
